#ifndef EDRAGBOX_H
#define EDRAGBOX_H

#include <stdio.h>
#include "form.h"
#include <FL/Fl.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Tabs.H>
#include <FL/fl_draw.H>
/* XPM */
static char *grip_tile_xpm[] = {
"6 6 4 1",
"       c None",
".      c #FCFEFC",
"+      c #D4D6D4",
"@      c #9C9294",
".+++++",
"+...@+.++",
"+...@+",
".+++++",
"+...@+.++",
"+...@+"};

// forward declare this class so I can use it to make outer here.
class outer_group;


//static outer_group *outer = NULL;

// defines for the grab corners - top-left and bottom-right
#define TL -1
#define BR  1

// drag-button grab handles
class eDragBox : public Fl_Box {
private:
  int x1, y1; // click posn., used for dragging checks
  int corner; // which corner...
protected:
  // override box draw method to do our textured dragger look
  void draw();
  // override handle method to catch drag operations
  int handle(int event);
  Fl_Group *sahip;
  Cetele *main_win;
public:
  // basic constructor
  eDragBox(int x, int y, int cr);
};

#endif // EDRAGBOX_H
